package com.clz.latte.ec.main.Index;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.SimpleClickListener;
import com.clz.latte.delegate.LatteDaleGate;
import com.clz.latte.ec.main.deatil.IndexGoodsDetailDaleGate;

/**
 * Created by Administrator on 2018/4/8.
 */

public class IndexItemOnclickListener extends SimpleClickListener{
    private final LatteDaleGate DALEGATE;

    public IndexItemOnclickListener(LatteDaleGate dalegate) {
        DALEGATE = dalegate;
    }
    public static IndexItemOnclickListener create(LatteDaleGate daleGate){
        return new IndexItemOnclickListener(daleGate);
    }
    @Override
    public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
        final IndexGoodsDetailDaleGate detailDaleGate=IndexGoodsDetailDaleGate.create();
        DALEGATE.start(detailDaleGate);
    }

    @Override
    public void onItemLongClick(BaseQuickAdapter adapter, View view, int position) {

    }

    @Override
    public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {

    }

    @Override
    public void onItemChildLongClick(BaseQuickAdapter adapter, View view, int position) {

    }
}
